
 package com.ami.kvm.jviewer.kvmpkts;
 
 import com.ami.kvm.jviewer.common.ISOCFrameHdr;
 import com.ami.kvm.jviewer.gui.FSFrame;
 import com.ami.kvm.jviewer.gui.FSMenuBar;
 import com.ami.kvm.jviewer.gui.JVFrame;
 import com.ami.kvm.jviewer.gui.JVMenu;
 import com.ami.kvm.jviewer.gui.JViewerApp;
 import com.ami.kvm.jviewer.gui.JViewerView;
 import com.ami.kvm.jviewer.gui.LocaleStrings;
 import java.awt.Insets;
 import java.awt.Point;
 import java.awt.Rectangle;
 import java.awt.Robot;
 import java.util.TimerTask;
 import javax.swing.JInternalFrame;
 import javax.swing.JLabel;
 import javax.swing.JScrollPane;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 class FrameRateTask1
   extends TimerTask
 {
   Point viewPoint;
   static int flip = 0; static int right = 1; static int top = 1;
   
 
 
 
   public FrameRateTask1()
   {
     this.viewPoint = Mousecaliberation.getViewPoint();
     Mousecaliberation.i = this.viewPoint.x;
     Mousecaliberation.j = this.viewPoint.y;
   }
   
   public void run()
   {
     if (!JViewerView.Lost_focus_flag)
     {
       JVFrame localJVFrame = JViewerApp.getInstance().getMainWindow();
       int i = JViewerApp.getInstance().getSocframeHdr().getheight();
       
 
       Rectangle localRectangle = JViewerApp.getInstance().getMainWindow().getBounds();
       Mousecaliberation.robbie.mouseMove(Mousecaliberation.i, Mousecaliberation.j);
       if (JViewerApp.getInstance().isFullScreenMode()) {
         JViewerApp.getInstance().getM_fsFrame().getM_menuBar().setIDLabel(LocaleStrings.getString("3_6_MC") + " - " + JViewerView.MOUSE_ACCELERATION + "  :  " + LocaleStrings.getString("3_7_MC") + " - " + JViewerView.ACCEL_THRESHOLD);
       }
       else
       {
         JViewerApp.getInstance().getJVMenu().menu_string.setText("***" + LocaleStrings.getString("3_7_MC") + " " + LocaleStrings.getString("3_8_MC") + "*** " + LocaleStrings.getString("3_6_MC") + " : " + JViewerView.MOUSE_ACCELERATION + "   " + LocaleStrings.getString("3_7_MC") + " : " + JViewerView.ACCEL_THRESHOLD + "    ");
       }
       
 
       if (flip == 0) {
         Mousecaliberation.i += JViewerView.ACCEL_THRESHOLD;
         flip = 1;
       }
       else {
         Mousecaliberation.j += JViewerView.ACCEL_THRESHOLD;
         flip = 0; }
       int j;
       int k; if (JViewerApp.getInstance().isFullScreenMode()) {
         j = JViewerApp.getInstance().getRCView().getHeight();
         k = JViewerApp.getInstance().getRCView().getWidth();
       }
       else {
         j = JViewerApp.getInstance().getMainWindow().getM_viewSP().getHeight();
         k = JViewerApp.getInstance().getRCView().getWidth();
       }
       
       if ((Mousecaliberation.j > i) || (Mousecaliberation.j > j) || (Mousecaliberation.i > k))
       {
         if (!JViewerView.Lost_focus_flag)
         {
           Mousecaliberation.robbie.mouseMove(localJVFrame.getInsets().left + localRectangle.x, this.viewPoint.y + localRectangle.y);
           Mousecaliberation.i = this.viewPoint.x + 1;
           Mousecaliberation.j = this.viewPoint.y + 1;
         }
       }
     }
   }
 }


/* Location:              D:\Users\tianlin\Downloads\JViewer.jar!\com\ami\kvm\jviewer\kvmpkts\FrameRateTask1.class
 * Java compiler version: 5 (49.0)
 * JD-Core Version:       0.7.1
 */